# coding:utf-8
from __future__ import unicode_literals

from django.core.management.base import BaseCommand

from app.gen_report import bline_month_report, bdept_month_report
from utils.timezone import gen_month_range


class Command(BaseCommand):
    help = 'Month finace report'
    ARG_NUMBER = 'number'

    def handle(self, *args, **options):
        month_lft, month_rgh = gen_month_range()
        bline_month_report(month_lft, month_rgh)
        bdept_month_report(month_lft, month_rgh)
